package com.tpf.spring;

import com.tpf.spring.bean.Person;
import com.tpf.spring.config.TpfConfig;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * <p> </p >
 *
 * @author : tianpf
 * @version :  MainTest.java,v 1.0, 2021/2/26-16:06 tianpengfei Exp $
 */
public class MainTest {

	public static void main(String[] args) {

		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(TpfConfig.class);
//
//		Person person1 = context.getBean(Person.class);
//		Person person2 = context.getBean(Person.class);
//
//		System.out.println(person1 == person2);
//		System.out.println(person1.getCat());
//		System.out.println(person2.getCat());


	}
}
